package com.takeeasy.platform.facade.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.takeeasy.platform.control.CommonController;

@WebServlet(asyncSupported = true, urlPatterns = {"*.go"})
public class FacadeServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public FacadeServlet() {
		super();
	}

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		CommonController ctrl = new CommonController();
		ctrl.setHttpRequest(req);
		ctrl.setHttpResponse(resp);
		ctrl.excute();
	}

	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		doGet(req, resp);
	}
}
